home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / ultra250.zip / UW_GLOBX.H < prev    next >
Text File  |  1992-09-20  |  4KB  |  78 lines

  1. /****************************************************************************/
  2. /*                                                                                                                                                    */
  3. /* UW_GLOBX.H                                                                                                                             */
  4. /*                                                                                                                                                    */
  5. /* This module contains all the externs used by the UltraWIN library.       */
  6. /*                                                                                                                                                    */
  7. /*                                                                                                                    Kevin Huck            */
  8. /*                                                                                                                    Boyd Gafford        */
  9. /*                                                                                                                                                    */
  10. /****************************************************************************/
  11. #ifndef __UW_GLOB_H
  12. #ifndef __UW_GLOBX_H
  13. #define __UW_GLOBX_H
  14. #include <conio.h>
  15.  
  16. extern uchar far *Screen;                                /* ponter to physical screen loc        */
  17.  
  18. extern int         Num_windows;                            /* number of open windows on desk!    */
  19. extern int      V_cols;                                        /* columns on the video screen            */
  20. extern int      V_rows;                                        /* rows on the video screen                    */
  21. extern int         V_mode;                                        /* old video mode!                                    */
  22.  
  23. extern int        DV_seg;                                        /* Desqview variables                                */
  24. extern int        DV_off;
  25. extern int        DV_flag;
  26. extern int        DV_upd;
  27.  
  28. extern uchar     Dflt_att;
  29. extern uchar     Dflt_bdr_att;
  30.  
  31. extern int        Stack[64];
  32. extern int        Stack_ptr;                                /* stack to save wn states                    */
  33. extern int        Csr_visible;                            /* is the cursor visible                        */
  34. extern int        Csr_in_use;                                /* is the cursor used by a popup?        */
  35.  
  36. extern EVENT    Event;                                        /* the global event variable        */
  37. extern int        Mouse_exists;                            /* is the mouse available or not?        */
  38.  
  39. extern WINDOW    *First_window;                        /* manager first window pointer            */
  40. extern WINDOW    *Last_window;                            /* manager last window pointer            */
  41.  
  42. extern int (*Idle_func)(void);                    /* global function pointer                    */
  43. extern int (*Key_func)(int, int);                /* background key function pointer    */
  44.                                                                               /* validation function pointer      */
  45. extern int (*Vld_func)(char*, char*, char*, int, int, WINDOW*);
  46.                                                                               /* gets hook function pointer       */
  47. extern int (*Gets_hook_func)(char*, char*, char*, int, int, int, EVENT*, WINDOW*);
  48.  
  49. extern uchar  Fgnd, Bkgnd;                            /* fore/background for graphics mode*/
  50. extern int    Graphics;                                    /* set to 1 if graphics mode                */
  51. extern int    X_res, Y_res;                            /* x, y, res for graphics mode      */
  52. extern int    Font_rows, Font_spacing;    /* rows in font, font spacing                */
  53. extern int    Gseg, Goff;                                /* graphics screen segment, offset  */
  54. extern int    Bytes_per_row;                        /* bytes per graphics row                        */
  55. extern int    Ega, Vga, EgaVga;                  /* 1 if present    (mutually exclusive)*/
  56. extern int         G_csrx, G_csry;
  57. extern int        G_csr_char, G_opt;
  58. extern PRINT  *Printers[MAX_PRINTERS];    /* printer queue structure pointers    */
  59.  
  60. extern int    Uw_timers[4];                             /* user timers - decrement to 0            */
  61. extern int    Sys_timers[2];
  62. extern int        Sound_timer;                            /* system/sound timers                     */
  63. extern int    Clock_init;                             /* 1 if we have clock vector                */
  64. extern int    Sound_on;                                 /* 1 when sound is on                                */
  65. extern ulong  Tics;                                             /* total clock interrupts                        */
  66. extern int    Tics_per_sec;                            /* clock tics per second                         */    
  67. extern int    Video_init;                             /* 1 if we have init'd video (V2.5) */
  68. extern int    Mouse_init;                             /* 1 if we have init'd mouse (V2.5) */
  69.  
  70. extern int    Dbg_log_on, Dbg_stack_on;    /* internal debug support           */
  71. extern int    Dbg_line;
  72. extern char  *Dbg_file;
  73.  
  74. #endif /* __UW_GLOBX_H */
  75. #endif /* __UW_GLOB_H  */
  76.  
  77. /**** END OF FILE ****/
  78.